package com.example.demo.controller;

import com.example.demo.dao.FeignDao;
import com.example.demo.mapper.CommonMapper;
import com.example.demo.model.Response;
import com.example.demo.model.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FeignContro {
    @Autowired
    private FeignDao feignDao;
    @Autowired
    private CommonMapper commonMapper;
    @PostMapping("/feign_Controller")
    public Response<String> addTest(@RequestBody Test test) {
        Response<String> s = feignDao.addTest(test);

        return s;
    }


}
